﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace word.others
{
    public partial class date : Form
    {
        public date()
        {
            InitializeComponent();
        }

        private void label2_Click(object sender, EventArgs e)
        {

        }

        private void dateTimePicker1_ValueChanged(object sender, EventArgs e)
        {
            year.Text = dateTimePicker1.Value.Year.ToString()+"年";
            month.Text = dateTimePicker1.Value.Month.ToString()+"月";
            day.Text = dateTimePicker1.Value.Day.ToString()+"日";
            printlog(year.Text+month.Text+day.Text);
        }
        public void printlog(String message)
        {
            TB_log.AppendText("日志输出   " + DateTime.Now.ToShortDateString() +"   您选择的日期为   "+ message + "\r\n");
        }
    }

   
}
